﻿<UserControl x:Class="EFS.RC.SupervisorCentral.Controls.Agents.Main"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
			 x:Name="MainCtrl"
			 xmlns:osc="clr-namespace:EFS.RC.SupervisorCentral.Controls.Common"
			xmlns:agentNotACD="clr-namespace:EFS.RC.SupervisorCentral.Controls.Agents.NotACD"
			xmlns:agentACD="clr-namespace:EFS.RC.SupervisorCentral.Controls.Agents.ACD"
             d:DesignHeight="440" d:DesignWidth="1024"
			 xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls" xmlns:my="clr-namespace:EFS.Common.UI.Controls;assembly=EFS.Common.UI" xmlns:my1="clr-namespace:EFS.RC.SupervisorCentral.Controls" BorderBrush="DarkGray" BorderThickness="1">

	<Control.Resources>
		<!-- Styling the DockPanelSplitter -->
		<Style x:Key="HorizontalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="2 0 2 0" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="0,1,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,0,1"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalBevelGrip" TargetType="{x:Type GridSplitter}">
			<!-- Setter Property="Thickness" Value="6"/ -->
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type GridSplitter}">
						<Grid ToolTip="Resize" SnapsToDevicePixels="True" Background="LightGray">
							<!-- Grip -->
							<StackPanel Orientation="Vertical" VerticalAlignment="Center">
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Margin="0 2 0 2" Fill="#5A000000"/>
								<Rectangle Width="2" Height="2" Fill="#5A000000"/>
								<!-- (could also use an image or a drawing) -->
							</StackPanel>
							<!-- Bevels -->
							<Border BorderBrush="#5AFFFFFF" BorderThickness="1,0,0,0"/>
							<Border BorderBrush="#5A000000" BorderThickness="0,0,1,0"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Control.Resources>

	<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
		<Grid.ColumnDefinitions >
			<ColumnDefinition Width="*" MinWidth="100" />
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition Width="300" MinWidth="100" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="35"></RowDefinition>
			<RowDefinition Height="1"></RowDefinition>
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<GridSplitter 
			ResizeDirection="Columns"
			Grid.Row="2"
			Grid.RowSpan="1"
			Grid.Column="1"
			Height="Auto"
			Width="6"
			HorizontalAlignment="Stretch"
			VerticalAlignment="Stretch"
			Margin="0"
			Style="{StaticResource VerticalBevelGrip}" />

		<Grid Grid.Row="0" Grid.ColumnSpan="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="Auto" Background="LightCyan">
			<Viewbox Height="Auto" Margin="0,5,0,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
				<TextBlock TextAlignment="Center" Height="Auto" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="textBlockPhone" Text="PHONE URI" VerticalAlignment="Stretch" FontWeight="Bold" FontSize="15" />
			</Viewbox>
		</Grid>
		<Border Grid.Row="1" Grid.ColumnSpan="3" Height="1" Background="DarkGray" HorizontalAlignment="Stretch" Margin="0,0,0,0 " VerticalAlignment="Top" Visibility="Visible"/>
		<DockPanel Grid.Column="0" Grid.Row="4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
			<Grid Name="gridLeftPane" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
				<agentACD:List HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" x:Name="controlAgentsACD" />
			</Grid>
		</DockPanel>
		<DockPanel Grid.Row="2" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
			<Grid Name="gridBottomPane" DockPanel.Dock="Top" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
				<agentNotACD:List HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" x:Name="controlAgentsNotACD" />
			</Grid>
		</DockPanel>
	</Grid>
</UserControl>